<template>
  <div id="app">
    <router-view class="router-review" :key="$route.fullPath" :class="{bottom: $route.meta.isShowTabbar}"/>
    <AppTabbar v-show="$route.meta.isShowTabbar"/>
  </div>
</template>

<script>
import AppTabbar from '@/components/AppTabbar.vue' // 引入底部功能栏
export default {
  name: 'App',
  components: {
    AppTabbar // 注册组件
  },
  props: [],
  data () {
    return {}
  },
  computed: {},
  created () {
    // 判断是不是 微信客户端
    this.$store.dispatch('updateUserInfo')
  },
  mounted () {
  },
  watch: {},
  methods: {}
}
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
.router-review {
  padding-bottom: 50px;
  &.bottom {
    padding-bottom: 65px;
  }
}
</style>
